package com.bac.rentmap.ad.flat.jdo;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

public class JdoHelper {
    public Key convertToFlatAdKey(long flatAdId) {
        return KeyFactory.createKey("FlatAd", flatAdId);
    }

    public Key convertToFlatCrawledAdKey(long flatCrawledAdId) {
        return KeyFactory.createKey("FlatCrawledAd", flatCrawledAdId);
    }

    public Key convertToFlatImageKey(long flatImageId) {
        return KeyFactory.createKey("FlatImage", flatImageId);
    }
}
